@import './variable';
@import './layout';
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*:before,
*:after {
  box-sizing: border-box;
}

body,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6,
p,
th,
td,
dl,
dd,
form,
fieldset,
legend,
input,
textarea,
select {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  -ms-text-size-adjust: 100%; /* 3 */
  -webkit-text-size-adjust: 100%; /* 3 */
}

body {
  width: 100%;
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  font-size: @font-size-14;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

textarea {
  font-weight: 500;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}
/* dialog相关全局样式
---------------------------------------------- */
.dinlt-divider {
  width: 100%;
  border-bottom: 1px solid #e4e7ed;
}
.dinlt-dialog-customer {
  .dialog-flat-header {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  &.small {
    .el-dialog {
      width: 30%;
    }
  }

  &.medium {
    .el-dialog {
      width: 60%;
    }
  }

  &.large {
    .el-dialog {
      width: 90%;
    }
  }

  &.two-col {
    .el-form {
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      .el-form-item {
        flex: 0 0 50%;
        &.alone-row {
          flex: 0 0 100%;
        }
      }
    }
  }

  &.three-col {
    .el-form {
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      .el-form-item {
        flex: 0 0 33.3%;
        &.alone-row {
          flex: 0 0 100%;
        }
        &.half-row {
          flex: 0 0 66.6%;
        }
      }
    }
  }

  &.four-col {
    .el-form {
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      .el-form-item {
        flex: 0 0 25%;
        &.alone-row {
          flex: 0 0 100%;
        }
        &.half-row {
          flex: 0 0 66.6%;
        }
      }
    }
  }
}

.dinlt-dialog-body {
  padding: 5px 10px 10px;
}

.dinlt-dialog-body-inline {
  padding: 10px;
}

.dinlt-icon-button-wrap {
  i {
    font-weight: 600;
    margin-right: 15px;
    cursor: pointer;
  }
}
.dinlt-text-overflow-hidden {
  overflow: hidden; //超出隐藏
  text-overflow: ellipsis; //超出部分变成省略号
  display: -webkit-box; //将对象作为弹性伸缩盒子模型显示
  -webkit-box-orient: vertical; //从上到下垂直排列子元素
  -webkit-line-clamp: 2; //表示显示的行数（需要结合上面两个属性）
}
.dinlt-text-not-select {
  -moz-user-select: none; /*火狐*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10*/
  -khtml-user-select: none; /*早期浏览器*/
  user-select: none;
}

/* 部分element组件样式覆盖区域
---------------------------------------------- */
.el-card,
.el-message {
  border-radius: 1px !important;
}
.el-card .el-card__body {
  overflow: auto;
  position: relative;
}
.el-menu--popup-right-start {
  margin-left: 1px;
  margin-top: 1px;
}

//.el-card {
//    background: transparent;
//}

.el-table--small {
  font-size: 14px;
}

.el-button--small,
.el-button--small.is-round {
  padding: 8px 15px;
}
.el-card {
  .el-card__body {
    padding: 5px;
    text-align: center;
    height: 100%;
  }
}

//.el-table {
//  .el-button--mini {
//    padding: 4px 10px;
//  }
//  .el-button--mini.is-round {
//    padding: 4px 10px;
//  }
//}
.el-dialog {
  .el-dialog__header {
    padding: 10px;
  }
  .el-dialog__title {
    line-height: 18px;
    font-weight: 600;
  }
  .el-dialog__headerbtn {
    top: 15px;
    .el-dialog__close {
      font-size: 18px;
      font-weight: 600;
    }
  }
  .el-dialog__body {
    overflow: auto;
    padding: 0;
  }
  .el-dialog__footer {
    padding: 10px 20px;
  }
}
.el-input--mini .el-input__icon {
  color: #909090 !important;
}
.dintl-el-tooltip-wrap {
  text-align: left;
  font-size: 16px;
  max-width: 300px;
  width: fit-content;
  //min-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.el-input.is-disabled .el-input__inner {
  color: #606266 !important;
}
.el-textarea.is-disabled .el-textarea__inner {
  color: #606266 !important;
}
.el-select-dropdown__wrap {
  max-height: 295px !important;
}
